import { v4 } from "uuid";
const key = "userTempId";

function generateUserTempId() {
    let userTempId = window.localStorage.getItem(key);
    if (userTempId) {
        return userTempId;
    }
    userTempId = v4();
    window.localStorage.setItem(key, userTempId);
    return userTempId;
}
export default generateUserTempId;